package com.summarecon.utility;

import java.io.File;

import android.app.Activity;
import android.os.Environment;

public class MakeDir extends Activity{
	public static boolean createDirIfNotExists(String path) {
	    boolean ret = true;
	    
	    File file = new File(Environment.getExternalStorageDirectory(), path);
	    //System.out.println("successfully create a folder");
	    if (!file.exists()) {
	        if (!file.mkdirs()) {
	            //Log.e("TravellerLog :: ", "Problem creating Image folder");
	            ret = false;
	        }
	    }
	    
	    return ret;
	}
}
